package com.woniuxy.book.exception.bookinfo;

public enum BookInfoExceptionCode {
    BOOK_INFO_EXCEPTION_BOOK_NOT_EXISTS(30001,"该书籍不存在"),
    BOOK_INFO_EXCEPTION_BOOK_HAS_DELETED(30002,"有书籍已被删除 不能进行此操作"),
    BOOK_INFO_EXCEPTION_BOOK_HAS_DISABLED(30003,"有书籍已被下架，不能进行此操作"),
    BOOK_INFO_EXCEPTION_BOOK_HAS_ENABLED(30004,"有书籍已被上架，不能进行此操作"),
    BOOK_INFO_EXCEPTION_BOOK_NOT_DELETED(30005,"有书籍未被删除，不能撤销删除"),
    BOOK_INFO_EXCEPTION_BOOK_NOT_NORMAL(30006,"该书籍状态异常，不能进行此操作"),
    BOOK_INFO_EXCEPTION_BOOK_HAS_COLLECTED(30007,"你已收藏过该书 不能重复收藏"),
    BOOK_INFO_EXCEPTION_BOOK_NOT_COLLECT(30008,"你还未收藏该书籍 不能进行该操作"),
    BOOK_INFO_EXCEPTION_SHOPPING_CAR_NOT_EXISTS(30009,"购物车信息不存在"),
    BOOK_INFO_EXCEPTION_BUY_NUMBER_ATLEASTONE(30010,"购买数量至少为1件"),
    BOOK_INFO_EXCEPTION_CHANGE_CHECKED_SAME(30011,"不能重复修改");
    private Integer code;
    private String message;

    BookInfoExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
